package com.igeek.boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @package com.igeek.boot.entity
 * @Description 组织机构表
 * @Author LittlePunk [296526219@qq.ccom]
 * @Version 2022.1
 * @Date 2023/12/12 19:14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//用来标示表名的信息
@TableName("hrj_dept")
@ApiModel("组织机构表")
public class ZhrjDept {

    @ApiModelProperty("主键id")
    @TableId(value = "dept_id",type = IdType.AUTO)
    private Long deptId;

    @ApiModelProperty("父部门ID")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty("祖级列表")
    @TableField("ancestors")
    private String ancestors;

    @ApiModelProperty("部门名称")
    @TableField("dept_name")
    private String deptName;

    @ApiModelProperty("部门编号")
    @TableField("dept_no")
    private String deptNo;

    @ApiModelProperty("显示顺序")
    @TableField("order_num")
    private Integer orderNum;
}
